package com.neuedu.his.controller;

import com.neuedu.his.common.core.BaseController;
import com.neuedu.his.common.core.BaseService;
import com.neuedu.his.entity.UmsMenu;
import com.neuedu.his.service.UmsMenuService;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

@WebServlet("/umsMenu/*")
public class UmsMenuController extends BaseController<UmsMenu> {

    UmsMenuService umsMenuService = new UmsMenuService();


    @Override
    public BaseService getService() {
        return  umsMenuService ;
    }
    public List getParent(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        List<UmsMenu> list = umsMenuService.getParent(req);
        return list;
    }
}